package cn.hh.ymcc.exception;

import lombok.Data;

/**
 *  自定义全局异常
 */
@Data
public class GlobalException extends RuntimeException{

    private String code;


    public GlobalException(String message) {
        super(message);
    }

    public GlobalException(String message,String code) {
        super(message);
        this.code = code;

    }

//    public GlobalException(YmccError error) {
//        super(error.get);
//        this.code = code;
//
//    }


}
